package com.itheima02;

import java.util.concurrent.CountDownLatch;

public class ChileThread1 extends Thread {
    private CountDownLatch count;

    public ChileThread1(CountDownLatch count) {
        this.count = count;
    }

    @Override
    public void run() {
        for (int i = 1; i <= 10; i++) {
            System.out.println(getName() + "在吃第" + i + "个饺子");
        }
        count.countDown();
    }
}
